{* ----------------------------------------- *}
{* ------------- KERNEL LAYOUT ------------- *}
{* ----------------------------------------- *}

@{extends '../../templates/@system_layout.phtml'}


{block #title}
    Celebrio Kernel{ifset $title} - {$title}{/if}
{/block} {* #title *}


{block #head}

    <script type="text/javascript" src="{$basePath}/kernel/buttons-designer.js"></script>


    {if Albireo\Mode::isCritical()===FALSE}
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/jquery-ui/normal/default.css" type="text/css" />
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/kernel/screen-normal.css" type="text/css" />
    {else}
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/jquery-ui/critical/default.css" type="text/css" />
        <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/kernel/screen-critical-mode.css" type="text/css" />
    {/if}

    <link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/css/kernel/screen-default.css" type="text/css" />
    <link rel="shortcut icon" href="{$basePath}/favicon.ico" type="image/x-icon" />

{/block} {* #head *}

@{block #body}

    <noscript><style type="text/css">.button { display:inline-block;padding:0.4em 1em;width:auto; }</style></noscript>

    <div id="kernel_container">
        <a href="{$basePath}/kernel" title="{!_'Home'}" id="kernel_logo"><span class="invisible">{!_"Home"}</span></a>
        <div id="kernel_header"><span>Kernel</span></div>
        {if isset($links)}
        <ul id="kernel_main_menu">
            {foreach $links as $link => $value}
            <li>
                <a href="{link :$link:}" title="{$value}">{$value}</a>{if !$iterator->isLast()} | {/if}
            </li>
            {/foreach}
        </ul>
        {/if}

        <div id="kernel_body">
            {foreach $flashes as $flash}<div class="flash {$flash->type}">{$flash->message}</div>{/foreach}

            @{include #content}
            {* '@' is controlling sign for snippets,
            see http://forum.nettephp.com/cs/2451-zavinacova-magie-v-praxi
            (basic info in czech)
            *}
        </div>
        <div id="kernel_footer">© 2011 Celebrio Software</div>
    </div>
{/block} {* #body *}
